<#include "/common/_layout.html"/>
<@layout/>
<script type="text/javascript" src="${ctx}/static/js/sale.js"></script>
</head>
<body class="easyui-layout">
<table id="tg" title="订单列表" data-options="toolbar:'#toolbar',singleSelect: false">
	<thead>
		<tr>
			<th data-options="field:'id',hidden:true">id</th>
				<th data-options="field:'saleNo'" width="10%">订单号</th>
				<th data-options="field:'customer'" width="10%">客户</th>
				<th data-options="field:'telephone'" width="10%">电话</th>
				<th data-options="field:'partnerName'" width="10%">定制店</th>
				<th data-options="field:'saleTime'" width="10%">销售时间</th>
				<th data-options="field:'total'" width="10%">总金额</th>
				<th data-options="field:'return'" width="10%">回款</th>
				<th data-options="field:'orderDesc'">订单备注</th>
				
		</tr>
	</thead>
</table>

<div id="toolbar" style="padding:5px;height:auto;">
    <div id="toolbar" style="display:inline;margin-left:5px;">
     <a class="easyui-linkbutton" id="add" iconCls="icon-add" plain="true">添加订单</a><span class="toolbar-item dialog-tool-separator"></span>
     <a class="easyui-linkbutton" id="edit" iconCls="icon-edit" plain="true">修改订单</a><span class="toolbar-item dialog-tool-separator"></span>
     <a class="easyui-linkbutton" id="viewItem" iconCls="icon-ok" plain="true">管理订单明细</a><span class="toolbar-item dialog-tool-separator"></span>
     <a class="easyui-linkbutton" id="confirmPay" iconCls="icon-save" plain="true">确认收款</a><span class="toolbar-item dialog-tool-separator"></span>
	</div>
</div>
<div id="addOrderDialog" class="easyui-dialog" data-options="closed:true,modal:true,maximizable:true" style="width:400px;height:350px;">
<#include "add.html"/>
</div>
<div id="saleItem" class="easyui-dialog" data-options="closed:true,modal:true,maximizable:true" style="width:800px;height:600px;">
<#include "item.html"/>
</div>
</body>
</html>